package xin.val1ant.spring_security_jpa.controller;
import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import xin.val1ant.spring_security_jpa.domain.User;
import xin.val1ant.spring_security_jpa.service.IUserService;


/**
 * 用户控制器.
 *
 */
@Controller
@RequestMapping("/user")
public class UserController  {

	private static final Logger logger  = LoggerFactory.getLogger(MainController.class);


	@GetMapping("/hello")
	public String hello(){
		logger.info("拦截到 /user/hello 请求");
		return "user/hello";
	}

}
